package com.tuling.conifg;

import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;

/**
 * @Type Config.java
 * @Desc
 * @Author wzw
 * @Date 2024/8/24 13:45
 */
@Configuration
public class Config {
    public static void main(String[] args) {

    }
    @Bean
    @LoadBalanced
    public RestTemplate restTemplate(){
        return new RestTemplate();
    }
}
